package com.zksk.admin.api;

import com.zksk.admin.api.factory.RemoteAdminFallbackFactory;
import com.zksk.common.core.constant.ServiceNameConstants;
import com.zksk.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 系统模块
 *
 * @author zksk
 */
@FeignClient(contextId = "remoteAdminService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteAdminFallbackFactory.class)
public interface RemoteAdminService {

    /**
     * 查询机构数量
     */
    @GetMapping(value = "/org/nums")
    public R<Long> selectNums() ;
}
